<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
 */


//Route::post('upload','VodController@vod');

/**
 * @name 后台管理 - 2018 - 07 - 23
 * @author 武德安
 * @ps 决定分开处理 ，没有改框架的本身代码，暂时决定这么搞！
 */
use App\Api\Util\JRequest;
use Illuminate\Support\Facades\DB;
use \Illuminate\Support\Facades\Log;

// TODO 放到providers
DB::listen(function($query){
	if(env('ENABLE_SQL_LOG') == true) {
		$sql = $query -> sql;
		$bindings = $query -> bindings;
		Log::info($sql." | bindings:".json_encode($bindings)."");
	}
});

require_once 'mapi.php';
